import { defineComponent, type PropType } from "vue";
import type { VTableColumnRenderArgs } from "@/components/framework/v-table-types";
import type { CustomSlotsType } from "ant-design-vue/es/_util/type";

export default defineComponent({
  name: "v-table-column",
  inheritAttrs: false,
  props: {
    dataIndex: { type: String },
    title: { type: String },
    width: { type: [String, Number] as PropType<string | number> },
    align: { type: String as PropType<"left" | "right" | "center"> },
  },
  slots: Object as CustomSlotsType<{
    default: VTableColumnRenderArgs;
  }>,

  render() {
    return null;
  },
});
